import service from '@/utils/request'

// @Tags MaterialCategoryDocument
// @Summary 创建材质类别
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MaterialCategoryDocument true "创建材质类别"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /materialCategoryDocument/createMaterialCategoryDocument [post]
export const createMaterialCategoryDocument = (data) => {
  return service({
    url: '/materialCategoryDocument/createMaterialCategoryDocument',
    method: 'post',
    data
  })
}

// @Tags MaterialCategoryDocument
// @Summary 删除材质类别
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MaterialCategoryDocument true "删除材质类别"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /materialCategoryDocument/deleteMaterialCategoryDocument [delete]
export const deleteMaterialCategoryDocument = (params) => {
  return service({
    url: '/materialCategoryDocument/deleteMaterialCategoryDocument',
    method: 'delete',
    params
  })
}

// @Tags MaterialCategoryDocument
// @Summary 批量删除材质类别
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除材质类别"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /materialCategoryDocument/deleteMaterialCategoryDocument [delete]
export const deleteMaterialCategoryDocumentByIds = (params) => {
  return service({
    url: '/materialCategoryDocument/deleteMaterialCategoryDocumentByIds',
    method: 'delete',
    params
  })
}

// @Tags MaterialCategoryDocument
// @Summary 更新材质类别
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MaterialCategoryDocument true "更新材质类别"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /materialCategoryDocument/updateMaterialCategoryDocument [put]
export const updateMaterialCategoryDocument = (data) => {
  return service({
    url: '/materialCategoryDocument/updateMaterialCategoryDocument',
    method: 'put',
    data
  })
}

// @Tags MaterialCategoryDocument
// @Summary 用id查询材质类别
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MaterialCategoryDocument true "用id查询材质类别"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /materialCategoryDocument/findMaterialCategoryDocument [get]
export const findMaterialCategoryDocument = (params) => {
  return service({
    url: '/materialCategoryDocument/findMaterialCategoryDocument',
    method: 'get',
    params
  })
}

// @Tags MaterialCategoryDocument
// @Summary 分页获取材质类别列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取材质类别列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /materialCategoryDocument/getMaterialCategoryDocumentList [get]
export const getMaterialCategoryDocumentList = (params) => {
  return service({
    url: '/materialCategoryDocument/getMaterialCategoryDocumentList',
    method: 'get',
    params
  })
}
